How to calculate Depth of Beam